<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Vue3 Demo</title>
        <script src="https://unpkg.com/vue@3.5.13"></script>
    </head>
    <body>
        <div style="text-align: center" id="Application">
            <h1> {{ count }}</h1>
            <button v-on:click="clickButton">点击</button>
        </div>

        <script>
            const Application = {
                // 数据
                data() {
                    return {
                        count: 0
                    }
                },
                // 方法
                methods: {
                    // 点击按钮
                    // 修改数据
                    clickButton() {
                        this.count++
                    }
                }
            }
            // 创建应用,挂载到id为Application的元素上
            Vue.createApp(Application).mount('#Application')
        </script>
    </body>
</html>